<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<c:choose>
    <c:when test="${resultVo.result.industryCode eq 'A'}">
        <input id="question_modal_title" type="hidden" value="煤矿题库">
    </c:when>

    <c:when test="${resultVo.result.industryCode eq 'B'}">
        <input id="question_modal_title" type="hidden" value="非煤矿山题库">
    </c:when>

    <c:when test="${resultVo.result.industryCode eq 'C'}">
        <input id="question_modal_title" type="hidden" value="危化烟花爆竹题库">
    </c:when>

    <c:when test="${resultVo.result.industryCode eq 'D'}">
        <input id="question_modal_title" type="hidden" value="职业健康和工贸题库">
    </c:when>

    <c:when test="${resultVo.result.industryCode eq 'E'}">
        <input id="question_modal_title" type="hidden" value="公共题库">
    </c:when>

    <c:otherwise>
        <input id="question_modal_title" type="hidden" value="其他题库">
    </c:otherwise>
</c:choose>

<div class="page-content">
    <div class="row">
        <h1 class="header smaller red m-t-0 m-b-5 f-s-14 text-break">题目描述</h1>

        <div class="col-xs-12">
            <table class="width-p-100">
                <tr>
                    <td colspan="2" class="f-s-14 text-break vertical-align-top line-height-p-180">
                        ${resultVo.result.subjectTitle}
                    </td>
                </tr>

                <tr>
                    <td class="p-l-10 p-t-10 p-r-10 f-s-14 text-break width-p-50 vertical-align-top">
                        ${resultVo.result.answerA}
                    </td>

                    <td class="p-l-10 p-t-10 p-r-10 f-s-14 text-break width-p-50 vertical-align-top">
                        ${resultVo.result.answerB}
                    </td>
                </tr>

                <tr>
                    <td class="p-l-10 p-t-10 p-r-10 f-s-14 text-break width-p-50 vertical-align-top">
                        ${resultVo.result.answerC}
                    </td>

                    <td class="p-l-10 p-t-10 p-r-10 f-s-14 text-break width-p-50 vertical-align-top">
                        ${resultVo.result.answerD}
                    </td>
                </tr>

                <tr>
                    <td colspan="2" class="red p-t-20 f-s-14 text-break vertical-align-top">
                        答案：${resultVo.result.rightAns}
                    </td>
                </tr>
            </table>
        </div>
    </div>

    <div class="row">
        <h1 class="red header smaller m-b-5 m-t-50 f-s-14 text-break">学习内容</h1>

        <div class="col-xs-12">
            <p class="f-s-14 text-break line-height-p-180">
                ${resultVo.result.description}
            </p>
        </div>
    </div>
</div>